<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.stdc.stringz</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.stdc.stringz");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791">tango.stdc.stringz</a></h1>
                
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Version:</b><br>
Initial release: October 2006<br><br>
<b>author:</b><br>Keinfarbton &amp; Kris<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>char* <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L21">toStringz</a></span>
<script>explorer.outline.addDecl('toStringz');</script>(char[] <span class="funcparam">s</span>, char[] <span class="funcparam">tmp</span> = null);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert array of chars to a C-style 0 terminated string.
 Providing a tmp will use that instead of the heap, where
 appropriate.
 </font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>char*[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L51">toStringz</a></span>
<script>explorer.outline.addDecl('toStringz');</script>(char[] <span class="funcparam">tmp</span>, char*[] <span class="funcparam">dst</span>, char[][] <span class="funcparam">strings</span>...);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert a series of char[] to C-style 0 terminated strings, using 
 tmp as a workspace and dst as a place to put the resulting char*'s.
 This is handy for efficiently converting multiple strings at once.</font><br><br>
<font color="black">Returns a populated slice of dst<br><br> </font><br><br>
<b>Since:</b><br>0.99.7<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>char[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L73">fromStringz</a></span>
<script>explorer.outline.addDecl('fromStringz');</script>(char* <span class="funcparam">s</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert a C-style 0 terminated string to an array of char
 </font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>wchar* <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L82">toString16z</a></span>
<script>explorer.outline.addDecl('toString16z');</script>(wchar[] <span class="funcparam">s</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert array of wchars s[] to a C-style 0 terminated string.
 </font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>wchar[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L94">fromString16z</a></span>
<script>explorer.outline.addDecl('fromString16z');</script>(wchar* <span class="funcparam">s</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert a C-style 0 terminated string to an array of wchar
 </font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>dchar* <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L103">toString32z</a></span>
<script>explorer.outline.addDecl('toString32z');</script>(dchar[] <span class="funcparam">s</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert array of dchars s[] to a C-style 0 terminated string.
 </font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>dchar[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L115">fromString32z</a></span>
<script>explorer.outline.addDecl('fromString32z');</script>(dchar* <span class="funcparam">s</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Convert a C-style 0 terminated string to an array of dchar
 </font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>size_t <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/stringz.d?rev=3791#L124">strlenz</a></span>
<script>explorer.outline.addDecl('strlenz');</script>(T)(T* <span class="funcparam">s</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">portable strlen
 </font><br><br></dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (c) 2006 Keinfarbton. All rights reserved :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sat Aug  2 16:08:38 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>